FROM kubespheredev/builder-maven:v3.3.1-jdk17

ENV MAVEN_VERSION 3.9.9
ADD apache-maven-3.9.9-bin.tar.gz /opt/
ENV M2_HOME /opt/apache-maven-$MAVEN_VERSION
ENV JAVA_HOME $JDK_HOME
ENV maven.home $M2_HOME
ENV M2 $M2_HOME/bin
ENV PATH $M2:$PATH:JAVA_HOME/bin
